package com.campus.counseling.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sys_article")
public class SysArticle {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String title;
    
    private String content;
    
    private String category;
    
    private Boolean isImportant;
    
    private String status;
    
    private String summary;
    
    private Long authorId;

    @TableField("cover_url")
    private String coverUrl;
    
    private Integer viewCount;
    
    private Integer orderNum;
    
    private String visibleRoles;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
} 